
<div class="container" >
  <div class="float_r">
  <form #formRef="ngForm" (ngSubmit)="onSubmit(formRef.value)">
    <fieldset ngModelGroup="login">
      <div>
        <div>
        <label class ="mark">用户名: </label>
      </div>
      <div>
        <input name="username" type="text" [(ngModel)]="username" #usernameRef="ngModel" required minlength="3" placeholder="用户名"/>
        
        <label *ngIf="auth?.hasError">{{auth.errMsg}}</label>
      </div>
      </div>
      <div>
        <div>
        <label class ="mark">密码: </label>
      </div>
      <div>
        <input name="password" type="password" [(ngModel)]="password" #passwordRef="ngModel" required placeholder="密码" />
        
      </div>  
      </div>
      <button type="submit">登陆</button>
    </fieldset>
  </form>
</div>
</div>
